<?php
/**
 * Created by sublime 3.
 * Auth: Inhere
 * Date: 14-9-4
 * Time: 10:35
 * Be used to: test controller
 */
namespace app\controllers;

use ulue\web\Controller;

class DefaultController extends Controller
{

    public function indexAction()
    {
        $test_file         = str_replace(PROJECT_PATH,'./',__FILE__);
        //应用配置文件
        $config_file       = str_replace(PROJECT_PATH,'./',realpath('../').'/config.php');
        //核心配置文件
        $core_config_file  = SYS_PATH.'config/coreConfig.php';

        $arrDisplay = [
            'test_file'         => $test_file,
            'config_file'       => $config_file,
            'core_config_file'  => $core_config_file
        ];
        return $this->showPartial('view',$arrDisplay);
    }


}